package com.sdry.service.impl.hpf;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.hpf.FinishProductLibraryOutDetailMapper;
import com.sdry.model.hpf.FinishProductLibraryOutDetail;
import com.sdry.service.hpf.FinishProductLibraryOutDetailService;

/**
 * @ClassName: FinishProductLibraryOutDetailServiceImpl 
 * @Description:成品库出库详情Service实现
 * @Author hpf
 * @Date 2019年1月28日 下午3:21:18 
 * @version 1.0
 */
@Service
public class FinishProductLibraryOutDetailServiceImpl implements FinishProductLibraryOutDetailService {

	@Resource
	private FinishProductLibraryOutDetailMapper finishProductLibraryOutDetailMapper;
	
	/**
	 * 成品库出库详情总数
	 * @param finishProductLibraryOutDetail
	 * @return
	 */
	public Integer countFinishProductLibraryOutDetail(FinishProductLibraryOutDetail finishProductLibraryOutDetail) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutDetailMapper.countFinishProductLibraryOutDetail(finishProductLibraryOutDetail);
	}

	/**
	 * 分页查询成品库出库详情
	 * @param map
	 * @return
	 */
	public List<FinishProductLibraryOutDetail> listPageFinishProductLibraryOutDetail(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutDetailMapper.listPageFinishProductLibraryOutDetail(map);
	}

	/**
	 * 查询所有成品库出库详情
	 * @return
	 */
	public List<FinishProductLibraryOutDetail> listAllFinishProductLibraryOutDetail() {
		// TODO Auto-generated method stub
		return finishProductLibraryOutDetailMapper.listAllFinishProductLibraryOutDetail();
	}

	/**
	 * 新增成品库出库详情
	 * @param finishProductLibraryOutDetail 成品库出库详情实体
	 * @return
	 */
	public Integer insertFinishProductLibraryOutDetail(FinishProductLibraryOutDetail finishProductLibraryOutDetail) {
		// TODO Auto-generated method stub
		return finishProductLibraryOutDetailMapper.insertFinishProductLibraryOutDetail(finishProductLibraryOutDetail);
	}

}
